function confirm_email_check()
{
    var form = document.getElementById('register_form');
    if(form.confirm_email.value != form.email.value) {
	document.getElementById('confirm_email_span').innerHTML = '<img src="/resources/images/exclamation.gif" title="This does not match your email" alt="Input Error" style="cursor: pointer" />';
    }
    else {
	document.getElementById('confirm_email_span').innerHTML = '<img src="/resources/images/accept.gif" title="Accepted" alt="Input Accepted" />';
    }
}

function password_check()
{
    var form = document.getElementById('register_form');
    if(form.password.value.length < 6) {
	document.getElementById('password_span').innerHTML = '<img src="/resources/images/exclamation.gif" title="Passwords need to be more than 6 characters long" alt="Input Error" />';
    }
    else {
	document.getElementById('password_span').innerHTML = '<img src="/resources/images/accept.gif" title="Accepted" alt="Input Accepted" />';
    }
}

function confirm_password_check()
{
    var form = document.getElementById('register_form');
    if(form.confirm_password.value.length >= 6) {
	if(form.confirm_password.value != form.password.value) {
	    document.getElementById('confirm_password_span').innerHTML = '<img src="/resources/images/exclamation.gif" title="This does not match your current password" alt="Input Error" />';
	}
	else {
	    document.getElementById('confirm_password_span').innerHTML = '<img src="/resources/images/accept.gif" title="Accepted" alt="Input Accepted" />';
	}
    }
    else {
	document.getElementById('confirm_password_span').innerHTML = '<img src="/resources/images/exclamation.gif" title="Passwords need to be more than 6 characters long" alt="Input Error" />';
    }
}